Editing an XML file for N4 Mobile form configuration

To edit the variform XML file for a N4 Mobile form configuration:

  1. Optionally, if you do not know the variform ID for the form you wish to change, see How Do I Find a variform ID in N4 Mobile? (on page 1) in the online help or on the Kaleris Community Portal.

  1. In N4, go to Administration Settings Database Backed Variforms.

  2. From the Actions menu, select Override a Variform Object.

  3. Optionally, copy the contents of the variform into a separate file to edit.

  4. Edit the XML file to comment out the unnecessary fields or buttons from each screen. The XML file contains all of the available fields.

To comment out a field or button, add two things to the line:

To add one or more flex fields, the N4 Mobile form must support flex fields. If so, then:

<item fieldId="unitFlexString01"/>

For more information, see the examples below.

  1. Save the edited XML file.

In the following example, the Temperature Unit field in the Gate Inspection program Reefer form is commented out:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE variforms PUBLIC "" "Variforms.dtd" >

<variforms>

<actions>

<action id="create">create</action>

<action id="query">query</action>

<action id="update">update</action>

<action id="delete">delete</action>

</actions>

<form id="MROD006">

<title>Reefer Info</title>

<actionsAllowed>

<actionMode action="create" mode="editable"/>

</actionsAllowed>

<item fieldId="mReeferTemperature"/>

<!--item fieldId="mTemperatureUnit"/-->

<item fieldId="mTemperatureUnitLabel"/>

<item fieldId="mIsDry"/>

</form>

</variforms>

In the following example, the ufvFlexString01 and ufvFlexString02 flex fields are uncommented in the Rail Operations Activity form:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE variforms PUBLIC "" "Variforms.dtd" >

<variforms>

<actions>

<action id="create">create</action>

<action id="query">query</action>

<action id="update">update</action>

<action id="delete">delete</action>

</actions>

<form id="MRI020">

<title>Container</title>

<actionsAllowed>

<actionMode action="create" mode="editable"/>

</actionsAllowed>

<item fieldId="mrContainerNumber"/>

<item fieldId="ufvFlexString01"/>

<item fieldId="ufvFlexString02"/>

<item fieldId="mrSubmitButton"/>

</form>

</variforms>